﻿using System.Windows.Forms;
using Styx;
using Styx.Helpers;

namespace InterrupterUltimate
{
    public class InterrupterUltimateSettings : Styx.Helpers.Settings
    {
        public InterrupterUltimateSettings()
            : base(Application.StartupPath + "\\Settings\\InterrupterSettings\\IUSettings_" + StyxWoW.Me.Name + ".xml")
        {
            Load();
        }

        ~InterrupterUltimateSettings()
        {
            Save();
        }

        [Setting, DefaultValue(false)]
        public bool DebugMode { get; set; }

        [Setting, DefaultValue(false)]
        public bool InterruptAll { get; set; }

        [Setting, DefaultValue(true)]
        public bool ShouldForceCast { get; set; }

        [Setting, DefaultValue(500)]
        public int CastMillisecondsLeft { get; set; }

        [Setting, DefaultValue(500)]
        public int ChannelMillisecondsElapsed { get; set; }
    }
}
